package org.cuijq.thinking.in.spring.bean.definition;

import org.cuijq.thinking.in.spring.bean.factory.UserFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * GC
 */
public class BeanGarbageCollectionDemo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext();

        ac.register(BeanInitializationDemo.class);

        ac.refresh();

        ac.close();
        //强制GC
        System.gc();
    }

}
